<include file="Public/_meta" />

<title>添加用户</title>
</head>
<body>
<article class="page-container">
	<form action='' method="post" class="form form-horizontal" id="form-member-change">
		<div class="row cl">
			<input name="userid" type="hidden" value="{$user.user_id}"/>
			<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>用户名：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="{$user.user_name}" placeholder=""  name="username" disabled="disabled">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>密码：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="password" class="input-text" value="123456" placeholder=""  name="password">
			</div>
		</div>
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3">电话：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<input type="text" class="input-text" value="{$user.phone}" placeholder=""  name="telphone">
			</div>
		</div>

		<!--<div class="row cl">-->
		<!--	<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>所属区域：</label>-->
		<!--	<div class="formControls col-xs-8 col-sm-9"> <span class="select-box">-->
		<!--		<select class="select" size="1" name="place">-->
		<!--			<option value="" selected>请所属区域</option>-->
		<!--			<volist name="place" id="val">-->
		<!--				<option value="{$key}" <if condition="$key eq $user['place']">selected</if>>{$val}</option>-->
		<!--			</volist>-->
		<!--		</select>-->
		<!--		</span> </div>-->
		<!--</div>-->

  <!--      <div class="row cl">-->
		<!--	<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>角色：</label>-->
		<!--	<div class="formControls col-xs-8 col-sm-9"> <span class="select-box">-->
		<!--		<select class="select" size="1" name="role">-->
		<!--			<volist name="roles" id="val">-->
		<!--				<option value="{$val.level_id}" <if condition="$val['level_id'] eq $user['level']">selected</if>>{$val.level}</option>-->
		<!--			</volist>-->
		<!--		</select>-->
		<!--		</span> </div>-->
		<!--</div>-->
		<!--<notempty name="user.bank_id">-->
	 <!--   <div class="row cl skin-minimal shenhe" >-->
		<!--	<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>负责的银行：</label>-->
		<!--	<div class="formControls col-xs-8 col-sm-9">-->
		<!--		<input type="text" class="input-text" value='{$user.bank_id|turnBank}' placeholder=""  name="bank">-->
		<!--	</div>-->
	 <!--   </div>-->
		<!--</notempty>-->
		<div class="row cl">
			<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-3">
				<input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
			</div>
		</div>
	</form>
</article>
<include file="Public/_footer" />
<script type="text/javascript" src="__PUBLIC__/lib/layer/2.1/layer.js"></script>
<script type="text/javascript">
var index = parent.layer.getFrameIndex(window.name)
$("#form-member-change").submit(function(){
        $.ajax({
          url:'{:U("User/change")}',
          type:'post',
          data:$('#form-member-change').serialize(),
          dataType:'json',
          success:function(data){
            if(data.ResultCode == '200'){
              layer.msg(data.ResultMessage,{time:1000},function(){
                  parent.window.location.reload()
                  parent.layer.close(index);
              });
            }
            else if(data.ResultCode == '500'){
                layer.msg(data.ResultMessage,{time:1000},function(){
                  
                })
            }
          }
        })
        return false;
	});
$(function(){
	$('.skin-minimal input').iCheck({
		checkboxClass: 'icheckbox-blue',
		radioClass: 'iradio-blue',
		increaseArea: '20%'
	});
});
</script>
</body>
</html>
